<?php /* Smarty version Smarty-3.1.6, created on 2013-03-26 10:36:44
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Client/add.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1148090099515109bc9633f1-68513100%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '169d1492fd6ec5b152034c347d22655071ee97cc' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/Client/add.tpl',
      1 => 1364183643,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1148090099515109bc9633f1-68513100',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lang' => 0,
    'max_no' => 0,
    'is_auto_no' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_515109bca0bd8',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_515109bca0bd8')) {function content_515109bca0bd8($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.wz.php';
if (!is_callable('smarty_function_html_radios')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.html_radios.php';
?><form action="<?php echo U('Client/insert');?>
" method="POST" onsubmit="return false">
<?php echo smarty_function_wz(array('action'=>"save,list,reset"),$_smarty_tpl);?>

<div class="add_box">
<input type="hidden" name="comp_type" value="1">
<table cellspacing="0" cellpadding="0" class="add_table">
	<tbody>
		<tr>
			<th colspan="2"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_basic'];?>
</th>
		</tr>
		<?php if (C('multi_client')==1){?>
		<tr>
			<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_type'];?>
：</td>
			<td class="t_left"><?php echo smarty_function_html_radios(array('options'=>C('CLIENT_TYPE'),'name'=>"detail_type",'checked'=>1,'id'=>"client_type"),$_smarty_tpl);?>
__*__</td>
		</tr>
		<?php }?>
		<tr>
      		<td class="width10"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_no'];?>
：</td>
      		<td class="t_left"><input type="text" name="comp_no" value="<?php echo $_smarty_tpl->tpl_vars['max_no']->value;?>
"  <?php echo $_smarty_tpl->tpl_vars['is_auto_no']->value;?>
>__*__</td>
    	</tr>
    	<tr>
      		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_name'];?>
：</td>
      		<td class="t_left"><input type="text" name="comp_name" class="spc_input" >__*__</td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['tax_no'];?>
：</td>
    		<td class="t_left"><input type="text" name="tax_no" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['iva'];?>
：</td>
    		<td class="t_left"><input type="text" name="iva" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_country'];?>
：</td>
    		<td class="t_left">
    			<input type="hidden" name="country_id" id="country_id" class="spc_input" onchange="getCity(this)">
      			<input id="country_name" name="country_name" url="<?php echo U('AutoComplete/country');?>
" jqac >
      		</td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_city'];?>
：</td>
    		<td class="t_left">
    			<span id="city"><?php echo $_smarty_tpl->tpl_vars['lang']->value['select_country'];?>
</span>
    			<?php echo smarty_function_quicklyAdd(array('module'=>"District",'lang'=>"add_city"),$_smarty_tpl);?>

    		</td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['remind_day'];?>
：</td>
    		<td class="t_left"><input type="text" name="remind_day" value="" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['remind_money'];?>
：</td>
    		<td class="t_left"><input type="text" name="remind_money" value="" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<th colspan="2"><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_cantent'];?>
</th>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['contact'];?>
：</td>
    		<td class="t_left"><input type="text" name="contact" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['mobile'];?>
：</td>
    		<td class="t_left"><input type="text" name="mobile" class="spc_input" >
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['phone'];?>
：</td>
    		<td class="t_left"><input type="text" name="phone" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['zip_code'];?>
：</td>
    		<td class="t_left"><input type="text" name="post_code" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['fax_no'];?>
：</td>
    		<td class="t_left"><input type="text" name="fax" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td><?php echo $_smarty_tpl->tpl_vars['lang']->value['email'];?>
：</td>
    		<td class="t_left"><input type="text" name="email" class="spc_input" ></td>
    	</tr>
    	<tr>
    		<td valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['address'];?>
：</td>
    		<td class="t_left"><textarea name="address" ></textarea></td>
    	</tr>
    	<tr>
    		<td valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['comments'];?>
：</td>
    		<td class="t_left"><textarea name="comments"></textarea></td>
    	</tr>
    </tbody>
</table>
</form>
</div>
<?php }} ?>